/**
 * date: 2018年2月23日
 * 
 * from : https://www.cnblogs.com/angrymoto/p/giveupjquery-1.html
 * 
 */

import * as $ from "jquery"

export class App {
    public addComment():void {
        let creatAt = new Date();
        $('#main').append('<div><span>new comment pushed at. ' + creatAt.toTimeString() + '</span>');
    }
}
let app = new App();
$(()=>{
    $('#btn-add').click(app.addComment);
});